print(True | False)
print(True or False)
print(True & False)
print(True and False)
print(not True)
print(not not True)
print(not not not True)
print(~True)    #按位取反
a = 1
b = 1.0
print(a == b)   #==比较的是内容
print(a is b)   #身份运算符，比较的是内存地址
a = {1,2,3}
b = {2,1,3}
print(a == b)
print(a is b)
a = (1,2,3)
b = (2,1,3)
print(a == b)
print(a is b)
a = [1,2,3]
b = [2,1,3]
print(a == b)
print(a is b)
print(8>>1)
print(8<<1)